package com.globaldom.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Wars implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    private String id;

	@Persistent
	private String personID;

	@Persistent
	private String enemyID;

	@Persistent
	private Integer warCount = 0;
	
	@Persistent
	private Date warDate = new Date();

	

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getWarCount() {
		return warCount;
	}

	public void setWarCount(Integer warCount) {
		this.warCount = warCount;
	}

	public String getPersonID() {
		return personID;
	}

	public void setPersonID(String personID) {
		this.personID = personID;
	}

	public String getEnemyID() {
		return enemyID;
	}

	public void setEnemyID(String enemyID) {
		this.enemyID = enemyID;
	}

	public Date getWarDate() {
		return warDate;
	}

	public void setWarDate(Date warDate) {
		this.warDate = warDate;
	}

}
